﻿using FireChat.Client.Model.Message.Util;
using Newtonsoft.Json;

namespace FireChat.Client.Model.Message.Receiver;


/// <summary>
/// 消息接收器
/// </summary>
public abstract class MessageReceiverBase
{
    /// <summary>
    /// 消息接收器类型
    /// </summary>
    public virtual MessageReceiverType Type => MessageReceiverType.None;


    /// <summary>
    /// 消息链
    /// </summary>

    [JsonConverter(typeof(MessageChianJsonConvert))]
    public required MessageChain MessageChain { get; init; }
}